package com.example.tallybook.frag_record;

import com.example.tallybook.R;
import com.example.tallybook.db.DBManager;
import com.example.tallybook.db.TypeBean;

import java.util.List;

public class IncomeFragment extends BaseRecordFragment {

    @Override
    public void loadDateToGV() {
        super.loadDateToGV();
        //获取数据库当中的数据
        List<TypeBean> inlist= DBManager.getTypeList(1);
        typeList.addAll(inlist);
        adapter.notifyDataSetChanged();
typeTv.setText("其他");
typeIv.setImageResource(R.mipmap.in_qt_fs);
    }
@Override
public void saveAccountToDB() {
accountBean.setKind(1);
DBManager.insertItemToAccounttb(accountBean);
}
}